package org.example;

import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
import java.util.Hashtable;

/**
 * @author Yyming
 * @version 10.0
 * Created by Yyming on 2020/10/21
 */
public class Model {

    private int anInt;

    public Model(int anInt) {
        this.anInt = anInt;
    }

    public void setAnInt(int anInt) {
        this.anInt = anInt;
    }

    public int getAnInt() {
        return anInt;
    }


    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder("<br>".length() * 2);
        CharacterIterator it = new StringCharacterIterator("<br>");
        for(char ch = it.first(); ch != '\uffff'; ch = it.next()) {
            if ((ch <= '`' || ch >= '{') && (ch <= '@' || ch >= '[') && ch != ' ' && (ch <= '/' || ch >= ':') && ch != '.' && ch != ',' && ch != '-' && ch != '_') {
                builder.append("&#").append((int)ch).append(";");
            } else {
                builder.append(ch);
            }
        }

        System.out.println(builder.toString());
    }
}
